BuffEffect27 = BaseBuffEffect:new();
BuffEffect27.__index = BuffEffect27;

function BuffEffect27:new()
    local object = {};
    setmetatable(object, BuffEffect27);
    return object;
end

function BuffEffect27:action(fight,buff,...)
    local target = buff.target;
    local values = decodeJsonStrToTabel(buff.buffBean.f_Value);
    if FighterManager.isInstate(target,EnumConst.FighterStateEnum.CAN_NOT_MOVE) and FighterManager.isInstate(target,EnumConst.FighterStateEnum.CAN_NOT_USE_SKILL and FighterManager.isInstate(target,EnumConst.FighterStateEnum.CAN_NOT_NORMAL_ATTACK)) then
        BuffManager.addBuff(fight,buff.source,target,false,values[1],values[2],buff.addParameter);

        fightLog("[EFFECT]Fighter "..buff.target.fighterId.." Buff"..buff.modelId.." 触发被控制增加BUFF效果，增加BUFF："..values[1]);
    end
    return EnumConst.IBuffEffect.SUCCESS;
end
